package com.cskaoyan.service;

import com.cskaoyan.bean.param.OrderParam;
import com.cskaoyan.bean.vo.DearlingOrderListVo;
import com.cskaoyan.bean.vo.OrderDetailDearling;
import com.cskaoyan.bean.data.BaseData;
import com.cskaoyan.bean.pojo.OrderGoods;
import com.cskaoyan.bean.pojo.User;
import com.cskaoyan.bean.wxbo.OrderCommentBo;
import com.cskaoyan.bean.wxbo.OrderCommitBo;


/**
 * @author ：dailin
 * @date ：
 * @description：
 */
public interface OrderService {
    DearlingOrderListVo selectOrderListDl(OrderParam orderParam,User user);

    OrderDetailDearling selectOrderDetail(OrderParam orderParam);

    BaseData selectOrderListWh(OrderParam orderParam);

    boolean refundMoney(Integer orderId);

    boolean confirmMoney(Integer orderId);

    OrderGoods selectOrderGoodsByOrderIdAndGoodsId(Integer orderId, Integer goodsId);

    boolean deleteOrderById(Integer orderId);

    boolean addComment(OrderCommentBo orderCommentBo, User user);

    boolean submitOrder(OrderCommitBo orderCommitBo, User user);

    boolean cancelOrder(int orderId);


    boolean prepayOrder(int orderId);
}
